package com.ppyydd.sms.service;

import com.ppyydd.sms.beans.Student;
import com.ppyydd.sms.studentDao.IStudentDao;
import com.ppyydd.sms.studentDao.IStudentDaoImpl;

public class StudentServiceImpl implements IStudentService {
    private IStudentDao dao;

    public StudentServiceImpl() {
        this.dao = new IStudentDaoImpl();
    }

    @Override
    public Student checkUser(String num, String password) {
        return dao.selectStudentByNum(num, password);
    }

    @Override
    public Integer setStudent(Student student) {
        return dao.insertStudent(student);
    }
}
